From 558a4ade15e97168562f7c8074050b0b3355628f Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Mon, 23 Nov 2009 07:06:39 +0000 Subject: [PATCH] libxenlight: fix compilation error for ia64 xc_cpuid_apply_policy() and HVM_PARAM_VIRIDIAN are defined on x86 only. Signed-off-by: KUWAMURA Shin'ya --- tools/libxl/libxl_dom.c | 2 ++ tools/libxl/xenguest.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/tools/libxl/libxl_dom.c b/tools/libxl/libxl_dom.c index 3940ee12da..8d107ecfe3 100644 --- a/tools/libxl/libxl_dom.c +++ b/tools/libxl/libxl_dom.c @@ -148,7 +148,9 @@ int build_hvm(struct libxl_ctx *ctx, uint32_t domid, XL_LOG_ERRNOVAL(ctx, XL_LOG_ERROR, ret, "hvm build set params failed"); return ERROR_FAIL; } +#if defined(__i386__) || defined(__x86_64__) xc_cpuid_apply_policy(ctx->xch, domid); +#endif return 0; } diff --git a/tools/libxl/xenguest.c b/tools/libxl/xenguest.c index dc2a4e856a..b30744d885 100644 --- a/tools/libxl/xenguest.c +++ b/tools/libxl/xenguest.c @@ -43,7 +43,9 @@ int hvm_build_set_params(int handle, uint32_t domid, xc_get_hvm_param(handle, domid, HVM_PARAM_STORE_PFN, store_mfn); xc_set_hvm_param(handle, domid, HVM_PARAM_PAE_ENABLED, pae); +#if defined(__i386__) || defined(__x86_64__) xc_set_hvm_param(handle, domid, HVM_PARAM_VIRIDIAN, viridian); +#endif xc_set_hvm_param(handle, domid, HVM_PARAM_STORE_EVTCHN, store_evtchn); return 0; } -- 2.30.2